package com.eati.cm.serv_impl;

import com.eati.cm.model.StoryGenre;
import com.eati.cm.repo.StoryGenreRepo;
import com.eati.cm.serv.IStoryGenreServ;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StoryGenreServ implements IStoryGenreServ {
    @Autowired
    private StoryGenreRepo storyGenreRepo;

    public List<StoryGenre> findAll(){
        return storyGenreRepo.findAll();
    }

    @Override
    public void save(StoryGenre storyGenre) {
        storyGenreRepo.save(storyGenre);
    }

    @Override
    public void delete(StoryGenre storyGenre){
        storyGenreRepo.delete(storyGenre);
    }



}
